package com.mi.study3;

public class Test{
	
	public static void main(String[] args) {
		Son s = new Son();
		s.print();
		System.out.println(s.toString());
		
		s.print111();
		s.print222();
	}
}


class Base {

	private int a = 3;
	
	public Base(){
		super();
	}
	public void print(){
		this.print2();
	}
	
	public void print2(){
		System.out.println(a);
	}
	
	public void print111(){
		System.out.println(this);
	}
	
//	private void aaa(){}
}


class Son extends Base{
//	private int a = 4;
	public Son(){
		super();
	}
	
	@Override
	public void print2() {
		super.toString();
	}
	
	public void print222(){
		System.out.println(this);
	}
	
}

